import request from '@/request'
// 测试接口
export function deviceIndex(data) {
  return request({
    url: '/device/index',
    method: 'post',
    data
  })
}

// 新增设备
export function addDevice(data) {
  return request({
    url: '/device/add',
    method: 'post',
    data
  })
}

// 设备列表
export function deviceList(data) {
  return request({
    url: '/device/list',
    method: 'post',
    data
  })
}

// 设备详情
export function deviceInfo(data) {
  return request({
    url: '/device/info',
    method: 'post',
    data
  })
}

// 设备删除
export function deviceDelete(data) {
  return request({
    url: '/device/delete',
    method: 'post',
    data
  })
}


// 设备列表
export function device_test(data) {
  return request({
    url: '/device/device_test',
    method: 'post',
    data
  })
}